package fluxx.draft;

/**
 * Thrown when there is a winner of the game. Contains winning player.
 */
@SuppressWarnings("serial")
public class GameOverException extends Exception {

	private final Player winner;

	/** Constructs a new exception with the final score.
	 * 
	 * @param score The final score of the game.
	 */
	public GameOverException(final Player winner) {
		this.winner = winner;
	}

	/** Get the score of the game */
	public Player getWinner() {
		return this.winner;
	}
}
